<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>测试ActionForm</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <h1>&nbsp;测试ActionForm</h1><br>
    <hr>
    <li>动态ActionForm</li><br>
    <form action="dynaActionFormTest.do" method="post">
    	姓名：<input type="text" name="username">
    	年龄：<input type="text" name="age">
    	<input type="submit" value="提交">
    </form>
    <li>测试struts上传文件</li><br>
    <form action="fileUpload.do" method="post" enctype="multipart/form-data">
    	标题：<input type="text" name="title">
    	文件：<input type="file" name="myfile">
    	<input type="submit" value="提交">
    </form>
    <li>测试空字段</li><br>
    <form action="blankField.do" method="post" >
    	标题：<input type="text" name="name">
    	<input type="submit" value="提交">
    </form>
    <li>测试ActionForm类型转换器</li><br>
    <form action="typeConvertTest.do" method="post">
    	intValue:<input type="text" name="intValue"><br>
    	doubleValue:<input type="text" name="doubleValue"><br>
    	booleanValue:<input type="text" name="booleanValue"><br>
    	java.sql.Date:<input type="text" name="sqlDate"><br>
    	java.util.Date:<input type="text" name="utilDate"><br>
    	<input type="submit" value="提交">
    </form>
    
    
  </body>
</html>
